.login_page {
  width: 100vw;
  height: 100vh;
  background-color: var(--theme-bg-secondary);
  color: var(--theme-text-primary);
  font-family: 'PingFang SC', 'Helvetica Neue', 'Hiragino Sans GB', 'Microsoft YaHei', 'Arial', sans-serif;
  display: flex;
  flex-direction: column;

  // Logo区域
  .logoSection {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 16px 30px;
    background-color: var(--theme-bg-secondary);

    .logo {
      max-width: 320px;
      width: 100%;
      height: auto;
      object-fit: contain;
    }
  }

  // 主要内容区域
  .mainContent {
    flex: 1;
    overflow-y: auto;
    padding: 20px 16px 16px;
    background-color: var(--theme-bg-secondary);

    // 输入组
    .inputGroup {
      margin-bottom: 24px;

      .inputLabel {
        display: block;
        font-size: 14px;
        font-weight: 500;
        color: var(--theme-text-muted);
        margin-bottom: 8px;
      }

      .emailInput,
      .passwordInput {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        background-color: var(--theme-bg-input);
        color: var(--theme-text-primary);
        border: 1px solid var(--theme-border-primary);
        border-radius: 6px;
        padding: 12px 16px;
        font-size: 16px;
        outline: none;

        &:focus {
          border-color: var(--theme-primary);
          box-shadow: 0 0 0 2px rgba(219, 39, 119, 0.2);
        }

        &::placeholder {
          color: var(--theme-text-muted);
        }
      }
    }

    // 忘记密码
    .forgotPassword {
      display: flex;
      justify-content: flex-end;
      margin-bottom: 32px;

      .forgotLink {
        font-size: 14px;
        color: var(--theme-primary);
        text-decoration: none;

        &:hover {
          color: var(--theme-primary-dark);
        }
      }
    }

    // 登录按钮
    .loginButtonGroup {
      margin-bottom: 24px;

      .loginButton {
        width: 100%;
        background-color: var(--theme-primary);
        color: var(--theme-text-primary);
        border: none;
        border-radius: 9999px;
        padding: 12px 16px;
        font-size: 16px;
        font-weight: bold;
        cursor: pointer;
        transition: background-color 0.2s ease;

        &:hover {
          background-color: var(--theme-primary-dark);
        }

        &:active {
          background-color: var(--theme-primary-dark);
        }
      }
    }

    // 注册链接
    .registerLink {
      text-align: center;
      margin-bottom: 64px;

      .registerText {
        font-size: 14px;
        color: var(--theme-text-muted);
        margin: 0;

        .registerSpan {
          color: var(--theme-primary);
          cursor: pointer;

          &:hover {
            color: var(--theme-primary-dark);
          }
        }
      }
    }

    // 分隔线
    .separator {
      display: flex;
      align-items: center;
      margin-bottom: 32px;

      .separatorLine {
        flex-grow: 1;
        height: 1px;
        background-color: var(--theme-border-primary);
      }

      .separatorText {
        padding: 0 16px;
        font-size: 14px;
        color: var(--theme-text-muted);
      }
    }

    // 其他登录方式
    .otherLogin {
      display: flex;
      justify-content: center;

      .phoneButton {
        background-color: var(--theme-bg-input);
        border: none;
        border-radius: 50%;
        width: 60px;
        height: 60px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: all 0.2s ease;

        &:hover {
          background-color: var(--theme-border-primary);
        }

        .phoneIcon {
          font-family: 'Material Icons', serif;
          font-size: 20px;
          color: var(--theme-text-primary);
        }

        .phoneText {
          font-size: 10px;
          color: var(--theme-text-muted);
          margin-top: 4px;
          white-space: nowrap;
        }
      }
    }
  }
}

// 全局样式覆盖
:global {
  .adm-input {
    --font-size: 16px;
    font-weight: normal;
    color: var(--theme-text-primary) !important;
    background-color: var(--theme-bg-input) !important;
    border: 1px solid var(--theme-border-primary) !important;
    border-radius: 6px !important;
    padding: 12px 16px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;

    &::placeholder {
      color: var(--theme-text-muted) !important;
    }

    &:focus {
      border-color: var(--theme-primary) !important;
      box-shadow: 0 0 0 2px rgba(219, 39, 119, 0.2) !important;
      color: var(--theme-text-primary) !important;
    }
  }

  .adm-button {
    font-size: 16px;
  }
  .adm-center-popup-body {
    background-color: var(--theme-bg-primary);
    color: var(--theme-text-primary) !important;
  }
  .adm-dialog-footer .adm-dialog-action-row{
    border:0 !important;
  }
}